import Vue from 'vue'
import App from './App.vue'
import axios from "axios"
import VueRouter from 'vue-router'

import "bootstrap/dist/css/bootstrap.css"
import "./assets/fonts/iconfont.css"

import MyGoodsList from './components/MyGoodsList.vue'
import MyGoodsSearch from './components/MyGoodsSearch.vue'
import MyUserInfo from './components/MyUserInfo.vue'
axios.defaults.baseURL = "https://www.escook.cn";
Vue.prototype.$axios = axios
Vue.config.productionTip = false

Vue.use(VueRouter)
const routes = [
  {
    path: '/mygoodslist',
    name:'MyGoodsList',
    component:MyGoodsList
  },
  {
    path: '/mygoodssearch',
    name:'MyGoodsSearch',
    component:MyGoodsSearch
  },
  {
    path: '/myuserInfo',
    name:'MyUserInfo',
    component:MyUserInfo
  }
  
]
const router = new VueRouter({
  routes
})

new Vue({
  router,
  render: h => h(App),
}).$mount('#app')
